home *** CD-ROM | disk | FTP | other *** search
- Path: isonews.bbn.hp.com!hpbblb!news
- From: Matthias Dittrich <matti>
- Newsgroups: comp.lang.c
- Subject: Re: Determining the serial number on a hard disk
- Date: 4 Mar 1996 07:49:20 GMT
- Organization: Hewlett-Packard Co.
- Message-ID: <4he7a0$qf2@hpbblb.bbn.hp.com>
- References: <3135bb42.459520398@news.alt.net>
- NNTP-Posting-Host: trabant.bbn.hp.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.07 9000/712)
- X-URL: news:3135bb42.459520398@news.alt.net
-
- joelg@mei.jsc.nasa.gov (Joel Gustavus) wrote:
- >I'm using MSVC. Does anyone know how to determine the serial number
- >of a disk. This is the number you get when you issue a VOL command
- >from the DOS prompt. I was thinking of using this number as a method
- >of copy protection.
- >Anybody know the sector, head, and cylinder where this number is
- >stored?
- >
- There is a DOS-call (int 21h) to read and write the disk serial number, but I
- don't remember the function number. I think many books are written about
- this, so you can find one. The number is located in the boot sector of the
- disk, but it's not a good idea to read or write the boot sector yourself.
-
- Good luck,
- Matthias
-
-